/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.library.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 内容管理
 *
 * @author pig
 * @date 2023-10-18 16:47:17
 */
@Data
@TableName("content_management")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "内容管理")
public class ContentManagementEntity extends Model<ContentManagementEntity> {

    private static final long serialVersionUID = 1L;


    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Long id;

    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    private String title;

    /**
     * 内容管理分类  1：公告管理  2：头条管理  3：专题管理
     */
    @ApiModelProperty(value = "内容管理分类  1：公告管理  2：头条管理  3：专题管理")
    private String contentManagementClassification;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "封面")
    private String cover;

    @ApiModelProperty(value = "图书id")
    private String bookId;

    @ApiModelProperty(value = "排序")
    private String sort;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 修改人
     */
    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "修改人")
    private String updateBy;

    /**
     * 更改时间
     */
    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "更改时间")
    private LocalDateTime updateTime;

    /**
     * 删除状态
     */
    @TableLogic
    @ApiModelProperty(value = "删除状态")
    private String delFlag;

    private Long pageView;
    private String url;
    private String type;

}
